/*
 Navicat Premium Data Transfer

 Source Server         : 127.0.0.1
 Source Server Type    : SQL Server
 Source Server Version : 13004001
 Source Host           : 127.0.0.1:1433
 Source Catalog        : scm_main_sflat
 Source Schema         : dbo

 Target Server Type    : SQL Server
 Target Server Version : 13004001
 File Encoding         : 65001

 Date: 27/11/2020 14:06:51
*/


-- ----------------------------
-- Table structure for smart_cartemp
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[smart_cartemp]') AND type IN ('U'))
	DROP TABLE [dbo].[smart_cartemp]
GO

CREATE TABLE [dbo].[smart_cartemp] (
  [car_name] varchar(20) COLLATE Chinese_PRC_CI_AS  NULL,
  [car_inout] int  NULL,
  [car_sbid] varchar(20) COLLATE Chinese_PRC_CI_AS  NULL,
  [car_datetime] datetime  NULL,
  [card_sbls] varchar(30) COLLATE Chinese_PRC_CI_AS  NULL,
  [user_serial] bigint  NULL,
  [car_picturelujin] varchar(50) COLLATE Chinese_PRC_CI_AS  NULL,
  [car_beizhu] varchar(150) COLLATE Chinese_PRC_CI_AS  NULL,
  [id] bigint  NOT NULL
)
GO

ALTER TABLE [dbo].[smart_cartemp] SET (LOCK_ESCALATION = TABLE)
GO


-- ----------------------------
-- Primary Key structure for table smart_cartemp
-- ----------------------------
ALTER TABLE [dbo].[smart_cartemp] ADD CONSTRAINT [PK_smart_cartemp] PRIMARY KEY CLUSTERED ([id])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO

